<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>ProvCon.func.classes</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="ProvCon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >docsis-provisioning</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="ProvCon-module.html">Package&nbsp;ProvCon</a> ::
        <a href="ProvCon.func-module.html">Package&nbsp;func</a> ::
        Module&nbsp;classes
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="ProvCon.func.classes-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="ProvCon.func.classes-module.html">Module ProvCon.func.classes</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"> </tt>
<a name="conditionalmethod"></a><div id="conditionalmethod-def"><a name="L2"></a><tt class="py-lineno"> 2</tt> <a class="py-toggle" href="#" id="conditionalmethod-toggle" onclick="return toggle('conditionalmethod');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.func.classes.conditionalmethod-class.html">conditionalmethod</a><tt class="py-op">:</tt> </tt>
</div><div id="conditionalmethod-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="conditionalmethod-expanded"><a name="conditionalmethod.__init__"></a><div id="conditionalmethod.__init__-def"><a name="L3"></a><tt class="py-lineno"> 3</tt> <a class="py-toggle" href="#" id="conditionalmethod.__init__-toggle" onclick="return toggle('conditionalmethod.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.func.classes.conditionalmethod-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="conditionalmethod.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="conditionalmethod.__init__-expanded"><a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">frozen</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">method</tt> <tt class="py-op">=</tt> <tt class="py-name">method</tt>  </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Method ProvCon.TFTP.Protocol.Packet.__repr__()=ProvCon.TFTP.Protocol.Packet-class.html#__repr__,Method ProvCon.TFTP.ProvisioningTFTP.BaseOven.__repr__()=ProvCon.TFTP.ProvisioningTFTP.BaseOven-class.html#__repr__,Method ProvCon.dbui.abstractui.fields.BaseArrayItemEditor.__repr__()=ProvCon.dbui.abstractui.fields.BaseArrayItemEditor-class.html#__repr__,Method ProvCon.dbui.abstractui.fields.BaseFieldEditor.__repr__()=ProvCon.dbui.abstractui.fields.BaseFieldEditor-class.html#__repr__,Method ProvCon.dbui.meta.field.Field.__repr__()=ProvCon.dbui.meta.field.Field-class.html#__repr__,Method ProvCon.dbui.meta.table.Table.__repr__()=ProvCon.dbui.meta.table.Table-class.html#__repr__,Method ProvCon.dbui.orm.record.Record.DataManipulationError.__repr__()=ProvCon.dbui.orm.record.Record.DataManipulationError-class.html#__repr__,Method ProvCon.dbui.orm.record.Record.DataQueryError.__repr__()=ProvCon.dbui.orm.record.Record.DataQueryError-class.html#__repr__,Method ProvCon.dbui.orm.record.Record.RecordIncomplete.__repr__()=ProvCon.dbui.orm.record.Record.RecordIncomplete-class.html#__repr__,Method ProvCon.dbui.orm.record.Record.RecordNotFound.__repr__()=ProvCon.dbui.orm.record.Record.RecordNotFound-class.html#__repr__,Method ProvCon.dbui.orm.record.Record.__repr__()=ProvCon.dbui.orm.record.Record-class.html#__repr__,Method ProvCon.docsis.compiler.encoder.error.__repr__()=ProvCon.docsis.compiler.encoder.error-class.html#__repr__,Method ProvCon.docsis.compiler.encoder.tlv.__repr__()=ProvCon.docsis.compiler.encoder.tlv-class.html#__repr__,Method ProvCon.docsis.compiler.encoder.tlv_multipart.__repr__()=ProvCon.docsis.compiler.encoder.tlv_multipart-class.html#__repr__,Method ProvCon.func.variables.TracedVariable.Tracer.__repr__()=ProvCon.func.variables.TracedVariable.Tracer-class.html#__repr__,Method ProvCon.func.variables.TracedVariable.__repr__()=ProvCon.func.variables.TracedVariable-class.html#__repr__,Method ProvCon.ui.uierror.__repr__()=ProvCon.ui.uierror-class.html#__repr__,Method ProvCon.wronolib.ipaddr.ip4addr.__repr__()=ProvCon.wronolib.ipaddr.ip4addr-class.html#__repr__,Method ProvCon.wronolib.ipaddr.ip4prefix.__repr__()=ProvCon.wronolib.ipaddr.ip4prefix-class.html#__repr__"><a title="ProvCon.TFTP.Protocol.Packet.__repr__
ProvCon.TFTP.ProvisioningTFTP.BaseOven.__repr__
ProvCon.dbui.abstractui.fields.BaseArrayItemEditor.__repr__
ProvCon.dbui.abstractui.fields.BaseFieldEditor.__repr__
ProvCon.dbui.meta.field.Field.__repr__
ProvCon.dbui.meta.table.Table.__repr__
ProvCon.dbui.orm.record.Record.DataManipulationError.__repr__
ProvCon.dbui.orm.record.Record.DataQueryError.__repr__
ProvCon.dbui.orm.record.Record.RecordIncomplete.__repr__
ProvCon.dbui.orm.record.Record.RecordNotFound.__repr__
ProvCon.dbui.orm.record.Record.__repr__
ProvCon.docsis.compiler.encoder.error.__repr__
ProvCon.docsis.compiler.encoder.tlv.__repr__
ProvCon.docsis.compiler.encoder.tlv_multipart.__repr__
ProvCon.func.variables.TracedVariable.Tracer.__repr__
ProvCon.func.variables.TracedVariable.__repr__
ProvCon.ui.uierror.__repr__
ProvCon.wronolib.ipaddr.ip4addr.__repr__
ProvCon.wronolib.ipaddr.ip4prefix.__repr__" class="py-name" href="#" onclick="return doclink('link-0', '__repr__', 'link-0');">__repr__</a></tt> <tt class="py-op">=</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">self</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">:</tt> <tt class="py-string">"[conditional] "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">method</tt><tt class="py-op">)</tt> </tt>
</div><a name="conditionalmethod.__call__"></a><div id="conditionalmethod.__call__-def"><a name="L7"></a><tt class="py-lineno"> 7</tt> <a class="py-toggle" href="#" id="conditionalmethod.__call__-toggle" onclick="return toggle('conditionalmethod.__call__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.func.classes.conditionalmethod-class.html#__call__">__call__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>         </tt>
</div><a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">frozen</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt>         </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">method</tt> <tt class="py-op">(</tt> <tt class="py-op">*</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">kwargs</tt> <tt class="py-op">)</tt> </tt>
</div><a name="conditionalmethod.freeze"></a><div id="conditionalmethod.freeze-def"><a name="L10"></a><tt class="py-lineno">10</tt> <a class="py-toggle" href="#" id="conditionalmethod.freeze-toggle" onclick="return toggle('conditionalmethod.freeze');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.func.classes.conditionalmethod-class.html#freeze">freeze</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="conditionalmethod.freeze-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="conditionalmethod.freeze-expanded"><a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">frozen</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt>         </tt>
</div><a name="conditionalmethod.thaw"></a><div id="conditionalmethod.thaw-def"><a name="L12"></a><tt class="py-lineno">12</tt> <a class="py-toggle" href="#" id="conditionalmethod.thaw-toggle" onclick="return toggle('conditionalmethod.thaw');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.func.classes.conditionalmethod-class.html#thaw">thaw</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="conditionalmethod.thaw-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="conditionalmethod.thaw-expanded"><a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">frozen</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div></div><a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">         </tt>
<a name="import_dict_as_attributes"></a><div id="import_dict_as_attributes-def"><a name="L15"></a><tt class="py-lineno">15</tt> <a class="py-toggle" href="#" id="import_dict_as_attributes-toggle" onclick="return toggle('import_dict_as_attributes');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.func.classes-module.html#import_dict_as_attributes">import_dict_as_attributes</a> <tt class="py-op">(</tt><tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">dic</tt><tt class="py-op">,</tt> <tt class="py-param">defaults</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="import_dict_as_attributes-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="import_dict_as_attributes-expanded"><a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">d</tt> <tt class="py-keyword">in</tt> <tt class="py-name">defaults</tt><tt class="py-op">:</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">d</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">defaults</tt><tt class="py-op">[</tt><tt class="py-name">d</tt><tt class="py-op">]</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">a</tt> <tt class="py-keyword">in</tt> <tt class="py-name">dic</tt><tt class="py-op">:</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">a</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">dic</tt><tt class="py-op">[</tt><tt class="py-name">a</tt><tt class="py-op">]</tt> </tt>
</div><a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="ProvCon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >docsis-provisioning</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Tue Jan 13 12:48:46 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
